/*
Copyright (C) 2003 Michael Würtinger

This file is part of Dynamicengine.

Dynamicengine is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3
of the License, or (at your option) any later version.

Dynamicengine is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Dynamicengine. If not, see http://www.gnu.org/licenses/.
*/


#ifndef READER_H
#define READER_H

#include <list>
#include "include.h"

/*
class CStructFileJoint
{
public:
	CStructFileJoint() {};
	CStructFileJoint(float X, float Y, bool Static) {x = X; y = Y; bStatic = Static;}
	~CStructFileJoint() {};
public:
	bool bStatic;
	float x;
	float y;
public:
	bool operator==(CStructFileJoint j) { return (j.x == x && j.y == y); }
};

class CStructFileTruss
{
public:
	CStructFileTruss(){};
	CStructFileTruss(float X1, float Y1, float X2, float Y2){ x1 = X1; y1 = Y1; x2 = X2; y2 = Y2; }
	~CStructFileTruss(){};
public:
	float x1, y1;
	float x2, y2;
public:
	bool operator==(CStructFileTruss t) { return (t.x1 == x1 && t.y1 == y1 && t.x2 == x2 && t.y2 == y2); } 
};


class CStructFile
{
public:
	void AddTruss(float x1, float y1, float x2, float y2);
	void AddJoint(float x, float y, bool bStatic);
	unsigned int m_uCurrentTool;
	bool m_bGrid;
	float m_XSize;
	float m_YSize;
	std::list<CStructFileJoint> m_lJoints;
	std::list<CStructFileTruss> m_lTrusses;

	bool ReadFile(char* strFile);
	void Translate(CSite* pSite);
};								 
*/
#endif
